package com.konke.sdslibrary.model;

import com.sds.sdk.android.sh.common.SHClientState;
import com.sds.sdk.android.sh.common.SHErrorCode;

/**
 * Created by L on 2016/5/31.
 */
public class SmartHomeStatus extends SmartHomeEvent {

    public SmartHomeStatus(String ccuId) {
        super(ccuId);
    }

    public SmartHomeStatus(String ccuId, SHClientState status) {
        super(ccuId);
        this.status = status;
    }

    private SHClientState status;

    private SHErrorCode mErrorCode;

    private boolean isLanConn;

    public SHClientState getStatus() {
        return status;
    }

    public void setStatus(SHClientState status) {
        this.status = status;
    }

    public void setLanConn(boolean lanConn) {
        isLanConn = lanConn;
    }

    public boolean isLanConn() {
        return isLanConn;
    }

    public SHErrorCode getErrorCode() {
        return mErrorCode;
    }

    public void setErrorCode(SHErrorCode errorCode) {
        mErrorCode = errorCode;
    }

    @Override
    public String toString() {
        return "ccu status:"+status.name();
    }
}
